#include <clocale>
#include <string>
#include <iostream>
#include <fstream>
#include "Person.h"
#include "InterestTable.h"
#include "PersonList.h"
#include "Couple.h"
#include "Dating.h"

using namespace std;

int maintest()
{
	//Person p1("Anders And"), p2("Kaisa Kvack");
	//PersonList<Person> pList;

	//p1.AddInterest("computers");
	//p1.AddInterest("running");
	//p2.AddInterest("computers");
	//p2.AddInterest("wrestling");

	//pList.add_at_head(p1);
	//pList.add_at_head(p2);

	//for (auto &node : p1.GetInterests())
	//{
	//	if (p2.CheckIfMatch(node.info))
	//	{
	//		cout << node.info << ": MATCH!" << endl;
	//		Couple couple(p2, p1);
	//		cout << "Couple: " << couple.GetGirl().GetName() << ", " << couple.GetBoy().GetName() << endl;
	//	}
	//	else
	//		cout << node.info << ": NO MATCH!" << endl;
	//}
	//for (auto &person : pList)
	//{
	//	cout << person.info.GetName() << endl;
	//}

	Dating d;

	d.ReadGirlsFromFile("Girls.txt");
	d.ReadBoysFromFile("Boys.txt");
	
	d.PreferredMatchRate();
	d.ExecuteCheck();
	d.PrintCouples();

	return 0;
}

int main()
{
	setlocale(LC_ALL, "swedish");

	maintest();

	system("PAUSE");
	return 0;
}